package com.eqdd.yiqidian.ui.gongneng.renshi.train;

import android.view.View;

import com.eqdd.yiqidian.bean.EnterBean;
import com.eqdd.yiqidian.box.ItemDecoration.SectionDividerItemDecoration;
import com.eqdd.yiqidian.ui.base.BaseEnterActivity;
import com.eqdd.yiqidian.utils.DensityUtil;
import com.eqdd.yiqidian.utils.ToastUtil;

/**
 * Created by lvzhihao on 17-4-19.
 */

public class HRTrainActivity extends BaseEnterActivity {
    private Class[] classes = new Class[]{
            TrainRequestListActivity.class,
            TrainLectureListActivity.class,
            TrainPlanListActivity.class,
            TrainNoticeListActivity.class,
            TrainSignListActivity.class,
            null,
    };

    @Override
    public void itemClick(int p) {
        if (classes[p] != null) {
            startActivity(classes[p]);
        } else {
            ToastUtil.showShort("该模块暂未开发");
        }
    }

    @Override
    public void initEnterData() {
        initTopTitleBar(View.VISIBLE, "培训管理");
        enterBeans.add(new EnterBean("培训需求"));
        enterBeans.add(new EnterBean("课程管理"));
        enterBeans.add(new EnterBean("培训计划"));
        enterBeans.add(new EnterBean("培训通知"));
        enterBeans.add(new EnterBean("培训考勤"));
        enterBeans.add(new EnterBean("培训评价"));
        dataBinding.recyclerView.addItemDecoration(
                new SectionDividerItemDecoration(this)
                        .setLeftPadding(DensityUtil.percentW(30))
                        .setRightPadding(DensityUtil.percentW(30)));

    }
}
